/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const progressManagementRouter = {
  path: '/progress',
  component: Layout,
  // redirect: '/progress/progressManagement',
  meta: {
    // title: '进度管理',
    icon: 'management',
    roles: ['progress']
  },
  children: [{
    path: 'progressManagement',
    name: 'ProgressManagement',
    component: () =>
          import('@/views/progressManagement/index'),
    meta: {
      title: '进度管理',
      // activeMenu: 'progressManagement',
      icon: 'progress',
      roles: ['progress:get']
    }
  },
  {
    path: 'createProgress',
    name: 'CreateProgress',
    hidden: true,
    component: () =>
          import('@/views/progressManagement/createProgress'),
    meta: {
      title: '创建里程碑',
      activeMenu: 'progressManagement',
      parentRouter: {
        path: 'progressManagement',
        meta: {
          title: '进度管理'
        }
      }
    }
  },
  {
    path: 'detailProgress',
    name: 'DetailProgress',
    hidden: true,
    component: () =>
          import('@/views/progressManagement/detailProgress'),
    meta: {
      title: '里程碑详情',
      activeMenu: 'progressManagement',
      parentRouter: {
        path: 'progressManagement',
        meta: {
          title: '进度管理'
        }
      }
    }
  },
  {
    path: 'edgeProgress',
    name: 'EdgeProgress',
    hidden: true,
    component: () =>
          import('@/views/progressManagement/edgeProgress'),
    meta: {
      title: '编辑里程碑',
      activeMenu: 'progressManagement',
      parentRouter: {
        path: 'progressManagement',
        meta: {
          title: '进度管理'
        }
      }
    }
  }
  ]
}

export default progressManagementRouter
